<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.jiutian.hotel.business.impl.HotelListManagerImpl"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<%
String hotelid=request.getParameter("hotelid");
HotelListManagerImpl impl=new HotelListManagerImpl();
List photoids=impl.getPhotoList(hotelid);
%>
<title>
</title>
<link href="../../css/nivo-slider.css" rel="stylesheet" type="text/css" media="screen"/>
<script type="text/javascript" src="../../js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="../../js/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript">
$(window).load(function() {
    $('#slider').nivoSlider({effect:'fold',pauseTime:3000,manualAdvance:true});
});
</script>
</head>
<body>
<div id="slider" class="nivoSlider">
	<%for(int i=0;i<photoids.size();++i){
	    //String photoid=photoids.get(i).toString();
	%>
		<img src="http://www.ijiutian.com/hotelphoto/photos/<%=hotelid %>/<%=photoids.get(i) %>.JPG" alt="" />
    <%} %>
</div>
</body>
</html>